home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 November: Tool Chest / Dev.CD Nov 98 TC.toast / Sample Code / Toolbox / EditTextCdev / README < prev    next >
Encoding:
Text File  |  1994-11-18  |  1.7 KB  |  46 lines  |  [TEXT/MPS ]

  1. Macintosh
  2. Sample Code Notes
  3. _____________________________________________________________________________
  4.                                                   Developer Technical Support
  5.  
  6. #10:    EditCdev
  7.  
  8. Written by:    Mark Bennett and Dave Brubeck
  9.  
  10. Versions:            1.00                        August 1988
  11.                     1.10                        June 1992
  12.  
  13. Components:            EditCdev.p                    August 1, 1988
  14.                     EditCdev.c                    August 1, 1988
  15.                     EditCdev.r                    August 1, 1988
  16.                     CEditCdev.make                August 1, 1988
  17.                     PEditCdev.make                August 1, 1988
  18.                     TCEditCdev.π                June 12, 1992
  19.                     TCEditCdev.π.rsrc            June 12, 1992
  20.  
  21. _____________________________________________________________________________
  22.  
  23. EditCdev is a sample Control Panel device (cdev) that demonstrates 
  24. the use of the edit-related messages and how to implement an 
  25. editText item in a cdev.  It utilizes the new undo, cut, copy, 
  26. paste, and delete messages that are sent to cdevs in response to 
  27. user menu selections.
  28.  
  29. EditCdev is comprised of two editText items which can be edited 
  30. and selected with the mouse or the Tab key.
  31.  
  32. Changes in version 1.10
  33. _______________________
  34.  
  35. There is a problem with the dialog manager routines.  They don't check the
  36. length of what you are typing (or pasting) into a textEdit record.  You
  37. can easily type over the 32K textEdit limit, and overwrite various parts of
  38. memory.  To avoid this problem, a great deal of checking must be done
  39. whenever a character is typed or a paste is performed.  I arbitrarily chose
  40. the limit to be 50 characters, but any limit less that 32K may be used by
  41. changing the maxLength constant.
  42.  
  43. The new version also has two static text fields that always display the length
  44. of the text in the adjacent textEdit record.
  45.  
  46. Finally, a THINK C version was added, including project and resource files.